import { connect } from 'react-redux'
import * as Actions from '../modules/wilddog'

import Wilddog from '../components/Wilddog'
const mapDispatchToProps={
	getUpList:Actions.getUpList,
	addOneUp:Actions.addOneUp,
	updateUpCount:Actions.updateUpCount,
	deleteOneUp:Actions.deleteOneUp,
	getRooms:Actions.getRooms,
	getMessages:Actions.getMessages,
	delOneMessage:Actions.delOneMessage,
	updateMessage:Actions.updateMessage,
	addRoom:Actions.addRoom,
	addMessage:Actions.addMessage,
	getPhotos:Actions.getPhotos,
	getUser:Actions.getUser,
	authorizeUser:Actions.authorizeUser,
	delMessages:Actions.delMessages,
	getMoreMessages:Actions.getMoreMessages,
}

const mapStateToProps=(state)=>{
	
  // console.log(state)
  return state
}

export default connect(mapStateToProps,mapDispatchToProps)(Wilddog)